#include<stdio.h>
#include<math.h>
#include<string.h>

int main()
{
	double a,b;
	while (scanf("%lf", &a) != EOF)
	{
		b = log(1 + exp(a));
		printf("%.4lf\n",b);
	}
	return 0;
}